3411450779e2d5ccbff7e5801663c8a140448c28,src/main/org/codehaus/groovy/transform/stc/StaticTypeCheckingVisitor.java,StaticTypeCheckingVisitor,visitPropertyExpression,#PropertyExpression#,207
Before Change
if (!existsProperty(pexp, true)) {
Expression objectExpression = pexp.getObjectExpression();
addStaticTypeError("No such property: " + pexp.getPropertyAsString() +
" for class: " + findCurrentInstanceOfClass(objectExpression, objectExpression.getType()), pexp);
}
}
After Change
public void visitPropertyExpression(final PropertyExpression pexp) {
super.visitPropertyExpression(pexp);
if (!existsProperty(pexp, true)) {
Expression objectExpression = pexp.getObjectExpression();
addStaticTypeError("No such property: " + pexp.getPropertyAsString() +
" for class: " + findCurrentInstanceOfClass(objectExpression, getType(objectExpression)).toString(false), pexp);
}
}